const routes = [
    // 登录页面
    {
        path: '/login',
        component: () => import((process.env.VUE_APP_PORTALONE == 'true' ? '../../../portal/src': '@')  + '/views/login/Login.vue')
    },
    {
        path: '/selectApplication',
        component: () => import((process.env.VUE_APP_PORTALONE == 'true' ? '../../../portal/src': '@') + '/views/application/selectApplication.vue')
    },
    {
        path: '/*',
        component: () => import((process.env.VUE_APP_PORTALONE == 'true' ? '../../../portal/src': '@') + '/views/mfe/Mfe.vue'),
        meta:{
            keepAlive: true // 加载子应用的路由必须缓存否则子应用挂载的 dom会丢失
        }
    }
]
export default routes